* lisp/lpr.el: Signal print errors more prominently.
authorStefan Monnier <monnier@iro.umontreal.ca>
Wed, 24 Jul 2013 04:37:11 +0000 (00:37 -0400)
committerStefan Monnier <monnier@iro.umontreal.ca>
Wed, 24 Jul 2013 04:37:11 +0000 (00:37 -0400)
commitc9467f49e1f01b5e3406b476329b571e741f43ae
treef8c115466ae83c5e095130b1fea0f82bda1a9231
parent2a22cd94a1483637dbcc562c5b00d30edc9737ae
* lisp/lpr.el: Signal print errors more prominently.
(print-region-function): Don't default to nil.
(lpr-print-region): New function, extracted from print-region-1.
Check lpr's return value and signal an error in case of problem.
(print-region-1): Use it.
* lisp/ps-print.el (ps-windows-system, ps-lp-system): Remove.  Use the lpr-*
versions instead.
(ps-printer-name): Default to nil.
(ps-printer-name-option): Default to lpr-printer-switch.
(ps-print-region-function): Don't default to nil.
(ps-postscript-code-directory): Simplify default.
(ps-do-despool): Use lpr-print-region to properly check the outcome.
(ps-string-list, ps-eval-switch, ps-flatten-list)
(ps-flatten-list-1): Remove.
(ps-multibyte-buffer): Avoid setq.
* lisp/dos-w32.el (direct-print-region-helper): Use proper regexp operators.
(print-region-function, ps-print-region-function): Don't set them here.
lisp/ChangeLog
lisp/dos-w32.el
lisp/lpr.el
lisp/ps-mule.el
lisp/ps-print.el